{% extends 'layout.html' %}

{% block content %}
    <form method="post" novalidate class="form-horizontal">
        {% csrf_token %}

        {% for field in form %}
            <div class="form-group">
                <label class="col-sm-2 control-label" for="{{ field.id_for_label }}">
                    {{ field.label }}
                </label>
                <div class="col-sm-8">
                    {{ field }}
                    <span class="data_error">{{ field.errors.0 }}</span>
                </div>
            </div>
        {% endfor %}

        <button type="submit" class="btn btn-primary col-sm-offset-2">保 存</button>

    </form>
{% endblock %}